<template>
  <div class="home">
    <child v-model="title" />
    <!-- v-model是value 和 input的合写 也可以通过model属性自定义 属性和事件的名字-->
    <h1>{{ title }}</h1>
  </div>
</template>

<script>
// @ is an alias to /src
import child from "@/components/child.vue";

export default {
  name: "HomeView",
  data() {
    return {
      title: "hello world",
    };
  },
  components: {
    child,
  },
};
</script>
